/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/09/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.workbench.commons;

import java.util.HashMap;
import java.util.Map;

import com.manager.workflow.WorkFlowConstants;

public class DispatchPage {
	private static Map<Long,String> pageMap = new HashMap<Long,String>();
	
	private static Map<Long,String> viewMap = new HashMap<Long,String>();
	

	static{
		pageMap.put(WorkFlowConstants.BUSS_TYPE_LXSQ,"toAuditYfProjectApproval.do?method=toAuditYfProjectApproval");   //立项申请
		pageMap.put(WorkFlowConstants.BUSS_TYPE_WXHT,"toAuditYfOutsourceContract.do?method=toAuditYfOutsourceContract");   //外协合同
		pageMap.put(WorkFlowConstants.BUSS_TYPE_XMJH,"toAuditYfProjectPlan.do?method=toAuditYfProjectPlan");   //项目计划
		pageMap.put(WorkFlowConstants.BUSS_TYPE_XMJH_BG,"toAuditYfProjectPlan.do?method=toAuditYfProjectPlan");   //变更计划
		pageMap.put(WorkFlowConstants.BUSS_TYPE_GYSJ,"toAuditYfProjectDesign.do?method=toAuditYfProjectDesign");   //概要设计
		pageMap.put(WorkFlowConstants.BUSS_TYPE_YJXXSJ,"toAuditYfProjectDesign.do?method=toAuditYfProjectDesign");   //硬件子系统详细设计
		pageMap.put(WorkFlowConstants.BUSS_TYPE_RJXXSJ,"toAuditYfProjectDesign.do?method=toAuditYfProjectDesign");   //软件子系统详细设计
		pageMap.put(WorkFlowConstants.BUSS_TYPE_JKSJXXSJ,"toAuditYfProjectDesign.do?method=toAuditYfProjectDesign");   //接口设计
		pageMap.put(WorkFlowConstants.BUSS_TYPE_ZS,"toAuditYfProjectPilot.do?method=toAuditYfProjectPilot");   //中试
		pageMap.put(WorkFlowConstants.BUSS_TYPE_YSSP,"toAuditYfProjectAccept.do?method=toAuditYfProjectAccept");   //验收审批
		pageMap.put(WorkFlowConstants.BUSS_TYPE_RWZP,"toAuditYfAppointTask.do?method=toAuditYfAppointTask");   //任务指派
		pageMap.put(WorkFlowConstants.BUSS_TYPE_FYSQ,"toAuditYfApplyCost.do?method=toAuditYfApplyCost");   // 费用申请
		pageMap.put(WorkFlowConstants.BUSS_TYPE_FYBX,"toAuditYfFeeReimbur.do?method=toAuditYfFeeReimbur");   //费用报销
		
		viewMap.put(WorkFlowConstants.BUSS_TYPE_LXSQ,"/viewYfProjectApproval.do?method=viewYfProjectApproval&id=");   //立项申请
		viewMap.put(WorkFlowConstants.BUSS_TYPE_WXHT,"/viewYfOutsourceContract.do?method=viewYfOutsourceContract&id=");   //外协合同
		viewMap.put(WorkFlowConstants.BUSS_TYPE_XMJH,"/viewYfProjectPlan.do?method=viewYfProjectPlan&id=");   //项目计划
		viewMap.put(WorkFlowConstants.BUSS_TYPE_XMJH_BG,"/viewYfProjectPlan.do?method=viewYfProjectPlan&id=");   //变更计划
		
		viewMap.put(WorkFlowConstants.BUSS_TYPE_GYSJ,"/viewYfProjectDesign.do?method=viewYfProjectDesign&id=");   //概要设计
		viewMap.put(WorkFlowConstants.BUSS_TYPE_YJXXSJ,"/viewYfProjectDesign.do?method=viewYfProjectDesign&id=");   //硬件子系统详细设计
		viewMap.put(WorkFlowConstants.BUSS_TYPE_RJXXSJ,"/viewYfProjectDesign.do?method=viewYfProjectDesign&id=");   //软件子系统详细设计
		viewMap.put(WorkFlowConstants.BUSS_TYPE_JKSJXXSJ,"/viewYfProjectDesign.do?method=viewYfProjectDesign&id=");   //接口设计
		viewMap.put(WorkFlowConstants.BUSS_TYPE_ZS,"/viewYfProjectPilot.do?method=viewYfProjectPilot&id=");   //中试
		viewMap.put(WorkFlowConstants.BUSS_TYPE_YSSP,"/viewYfProjectAccept.do?method=viewYfProjectAccept&id=");   //验收审批
		viewMap.put(WorkFlowConstants.BUSS_TYPE_RWZP,"/viewYfAppointTask.do?method=viewYfAppointTask&id=");   //任务指派
		
		viewMap.put(WorkFlowConstants.BUSS_TYPE_FYSQ,"/viewYfApplyCost.do?method=viewYfApplyCost&id=");   // 费用申请
		viewMap.put(WorkFlowConstants.BUSS_TYPE_FYBX,"/viewYfFeeReimbur.do?method=viewYfFeeReimbur&id=");   //费用报销
		
	}
	
	
	
	public static String getPageUrl(Long bussType){
		return pageMap.get(bussType);
	}
	
	public static String getViewUrl(Long bussType){
		return viewMap.get(bussType);
	}
}
